<script setup lang="ts">
import Header from '@/head/header.vue';
import { RouterView } from 'vue-router';
import { ref } from 'vue';

const title = ref('iPhone系列最新回收报价单')

const date = new Date()
const getMonth = String(date.getMonth() + 1)
function getDate() {
  // return `${date.getFullYear()}-${getMonth.length == 1 ? `0${getMonth}` : getMonth}-${date.getDate()}  ${date.getHours() > 13 ? '下午' : '上午'}`
  return '2024-09-18'
}
</script>

<template>
  <div class="father">
    <div class="son">
      <Header :title="title" :getDate="getDate" />
      <div class="bar">
        <RouterView></RouterView>
      </div>
      <div class="footer">
        <span>注意：报价单仅供参考，具体以实际为准</span>
      </div>
    </div>

  </div>
</template>

<style scoped>
.father {
  width: 100vw;
  height: 100vh;
  padding: 20px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.father::after {
  content: '';
  background-color: #006246;
  width: 150%;
  height: 80%;
  position: absolute;
  bottom: -100px;
  left: -100px;
  z-index: -1;
  transform: rotate(170deg);

}

.son {
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  box-sizing: border-box;
  border: 2px solid #006246;
  border-radius: 5px;
}

.bar {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
</style>
